package com.produce.user;

import com.common.dao.util.RedisCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 类描述：用户中心生产者启动主入口类
 * @author linzf
 */
@SpringBootApplication
@MapperScan("com.produce.user.dao")
public class UserCenterProduceApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserCenterProduceApplication.class, args);
    }

    /**
     * 功能描述：初始化redis
     * @return
     */
    @Bean
    public RedisCache redisCache(){
        return new RedisCache();
    }
}
